var express = require('express');
var router = express.Router();
var DB = require('../lib/mysql');
var sendMail = require('../lib/sendMail');
var resBody = require('../lib/common/response');

/* GET home page. */
router.get('/', function (req, res, next) {
  sendMail();
  res.send();
});

router.get('/my', async (req, res, next) => {
  var resArr = await DB('select * from user');
  console.log(resArr);
  res.json(resArr);
});
module.exports = router;